package com.example.chat2.service;

import com.example.chat2.dao.PriMessageMapper;
import com.example.chat2.domain.PriMessageDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PriMessageService {
    private final PriMessageMapper priMessageMapper;

    @Autowired
    public PriMessageService(PriMessageMapper priMessageMapper) {
        this.priMessageMapper = priMessageMapper;
    }

    public  List<PriMessageDetail> findPriMessageDetailsWithSchoolchats() {
        return priMessageMapper.findPriMessageDetailsWithSchoolchats();
    }
}